package at.com.vn.chess.bean;

import java.util.List;

import at.com.vn.chess.entity.Room;

public class RoomBean {

	static List<Room> lstRoom;

	public List<Room> getLstRoom() {
		return lstRoom;
	}

	public void setLstRoom(List<Room> lstRoom) {
		this.lstRoom = lstRoom;
	}

	public static Room getRoom(int roomID) {
		for (Room iroom : lstRoom) {
			if (iroom.getRoom_id() == roomID) {
				return iroom;
			}
		}
		return null;
	}
}
